package cn.star.jots.employee.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
public class EmployeeSaveParam {
    @ApiModelProperty(value = "员工ID")
    private Long id;
    @ApiModelProperty(value = "员工姓名")
    private String username;
    @ApiModelProperty(value = "员工密码")
    private String password;
    @ApiModelProperty(value = "工号")
    private String jobNumber;
    @ApiModelProperty(value = "身份证号")
    private String idNumber;
    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @ApiModelProperty(value = "性别")
    private String gender;
    @ApiModelProperty(value = "员工手机号")
    private String phone;
    @ApiModelProperty(value = "家庭住址")
    private String address;
    @ApiModelProperty(value = "角色")
    private String role;
    @ApiModelProperty(value = "员工邮箱")
    private String email;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "状态")
    private String status;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
